package com.example.mapper;


import com.example.pojo.dev.*;
import com.example.pojo.dev.icDevState;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @BelongsProject: parem-yunstiu
 * @BelongsPackage: com.yunsitu.mapper
 * @Author: dyz
 * @CreateTime: 10:52
 * @Version: 1.0
 */
@Repository
public interface infoMapper {

    //查询设备表找到相对应内容
    fmDevInfo selectdevicebyobjectId(@Param("objectId") String objectId, @Param("modelId") String modelId);

    fmRoominfo selectroombyexternalid(@Param("externalid") String externalid);

    int updatedevicefo(@Param("objectId") String  objectId,@Param("faultnumber") int  faultnumber);

    icDevState selectStateByDbid(Integer dbid, Integer modelId);


    //查询级别为root的
    List<fmDevTree> selectroot();

    //根据pid 查询
    List<fmDevTree> selectbyPid(@Param("Pid") int pid);

    List<fmRoomTree> selectrootbyRoom();

    List<fmRoomTree> selectRoombyPid(@Param("Pid") int Pid);

    fmRoominfo selectfloorbydeviceName(@Param("dbid") int dbid, @Param("modelId") String modelId);

    //根据名称编号查询设备
    List<fmDevInfo> selectbydevname(String devName, String  devNumber);

    //根据房间编号查询房间
    fmRoominfo selectbyroomname(String rmName,String rmNumber);


}
